package net.osweb.crm.modules.sales.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Opportunity entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sales_opportunity")
public class Opportunity implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2560568260687069995L;
	private Integer id;
	private Integer userid;
	private String username;
	private Timestamp createtime;
	private String nextstep;
	private String opportunitiesname;
	private Timestamp closingdate;
	private String accountname;
	private String stage;
	private Integer probability;
	private String leadssource;
	private String expectedrevenue;
	private String contactname;
	private String campaignsource;
	private Integer status;
	private Integer types;
	private String projectname;
	private String modifiedby;
	private String category;
	private Integer isavailability;
	private String description;
	private Timestamp userviewtime;
	private String comment;

	// Constructors

	/** default constructor */
	public Opportunity() {
	}

	/** full constructor */
	public Opportunity(Integer userid, String username, Timestamp createtime,
			String nextstep, String opportunitiesname, Timestamp closingdate,
			String accountname, String stage, Integer probability,
			String leadssource, String expectedrevenue, String contactname,
			String campaignsource, Integer status, Integer types,
			String projectname, String modifiedby, String category,
			Integer isavailability, String description, Timestamp userviewtime,
			String comment) {
		this.userid = userid;
		this.username = username;
		this.createtime = createtime;
		this.nextstep = nextstep;
		this.opportunitiesname = opportunitiesname;
		this.closingdate = closingdate;
		this.accountname = accountname;
		this.stage = stage;
		this.probability = probability;
		this.leadssource = leadssource;
		this.expectedrevenue = expectedrevenue;
		this.contactname = contactname;
		this.campaignsource = campaignsource;
		this.status = status;
		this.types = types;
		this.projectname = projectname;
		this.modifiedby = modifiedby;
		this.category = category;
		this.isavailability = isavailability;
		this.description = description;
		this.userviewtime = userviewtime;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "username")
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "nextstep")
	public String getNextstep() {
		return this.nextstep;
	}

	public void setNextstep(String nextstep) {
		this.nextstep = nextstep;
	}

	@Column(name = "opportunitiesname")
	public String getOpportunitiesname() {
		return this.opportunitiesname;
	}

	public void setOpportunitiesname(String opportunitiesname) {
		this.opportunitiesname = opportunitiesname;
	}

	@Column(name = "closingdate", length = 19)
	public Timestamp getClosingdate() {
		return this.closingdate;
	}

	public void setClosingdate(Timestamp closingdate) {
		this.closingdate = closingdate;
	}

	@Column(name = "accountname")
	public String getAccountname() {
		return this.accountname;
	}

	public void setAccountname(String accountname) {
		this.accountname = accountname;
	}

	@Column(name = "stage")
	public String getStage() {
		return this.stage;
	}

	public void setStage(String stage) {
		this.stage = stage;
	}

	@Column(name = "probability")
	public Integer getProbability() {
		return this.probability;
	}

	public void setProbability(Integer probability) {
		this.probability = probability;
	}

	@Column(name = "leadssource")
	public String getLeadssource() {
		return this.leadssource;
	}

	public void setLeadssource(String leadssource) {
		this.leadssource = leadssource;
	}

	@Column(name = "expectedrevenue")
	public String getExpectedrevenue() {
		return this.expectedrevenue;
	}

	public void setExpectedrevenue(String expectedrevenue) {
		this.expectedrevenue = expectedrevenue;
	}

	@Column(name = "contactname")
	public String getContactname() {
		return this.contactname;
	}

	public void setContactname(String contactname) {
		this.contactname = contactname;
	}

	@Column(name = "campaignsource")
	public String getCampaignsource() {
		return this.campaignsource;
	}

	public void setCampaignsource(String campaignsource) {
		this.campaignsource = campaignsource;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "types")
	public Integer getTypes() {
		return this.types;
	}

	public void setTypes(Integer types) {
		this.types = types;
	}

	@Column(name = "projectname")
	public String getProjectname() {
		return this.projectname;
	}

	public void setProjectname(String projectname) {
		this.projectname = projectname;
	}

	@Column(name = "modifiedby")
	public String getModifiedby() {
		return this.modifiedby;
	}

	public void setModifiedby(String modifiedby) {
		this.modifiedby = modifiedby;
	}

	@Column(name = "category")
	public String getCategory() {
		return this.category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

	@Column(name = "description")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "userviewtime", length = 19)
	public Timestamp getUserviewtime() {
		return this.userviewtime;
	}

	public void setUserviewtime(Timestamp userviewtime) {
		this.userviewtime = userviewtime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}